package com.hangim.hangimsia.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.hangimsia.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 基本偏旁库
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-20
 */
@TableName("base_sense")
public class BaseSense extends IdEntity {

    /**
     * 繁体
     */
    private String complex;
    /**
     * 部首
     */
    private String component;
    /**
     * 名称
     */
    private String name;
    /**
     * 描述
     */
    private String comment;
    /**
     * 简体
     */
    private String simple;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 修改人
     */
    @TableField("updated_by")
    private Long updatedBy;
    /**
     * 删除人
     */
    @TableField("deleted_at")
    private Date deletedAt;
    /**
     * 删除时间
     */
    @TableField("deleted_by")
    private Long deletedBy;

    public String getComplex() {
        return complex;
    }

    public void setComplex(String complex) {
        this.complex = complex;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getSimple() {
        return simple;
    }

    public void setSimple(String simple) {
        this.simple = simple;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Long getDeletedBy() {
        return deletedBy;
    }

    public void setDeletedBy(Long deletedBy) {
        this.deletedBy = deletedBy;
    }

    @Override
    public String toString() {
        return "BaseSense{" +
                ", id=" + id +
                ", complex=" + complex +
                ", component=" + component +
                ", name=" + name +
                ", comment=" + comment +
                ", simple=" + simple +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                ", deletedAt=" + deletedAt +
                ", deletedBy=" + deletedBy +
                "}";
    }
}
